
 <{extends file="<{$tempdir}>/public/admin.html"}>
   <{block name=extendjs}>
<script type="text/javascript" language="javascript" src="<{$siteurl}>/templates/<{$tempdir}>/public/js/artdialog/plugins/iframeTools.js"></script>
 <{/block}>
 <{block name=controlname}>商家入驻留言列表<{/block}>
 <{block name=bodylist}>
 <div style="width:auto;overflow-x:hidden;overflow-y:auto">



           <div class="tags">



          <div id="tagscontent">

            <div id="con_one_1">

              <div class="table_td" style="margin-top:10px;">

              <form method="post" action="" onsubmit="return remind();"  id="delform">

                  <table border="0" cellspacing="2" cellpadding="4" class="list" name="table" id="table" width="100%">

                    <thead>

                      <tr>

                        <th width="60px"><input type="checkbox" id="chkall" name="chkall" onclick="checkall()"></th>

                        <th align="center">姓名</th>
                         <th align="center">手机号</th>
                        <th align="center">QQ</th>

                        <th align="center">店铺名称</th>
                        <th align="center">店铺详细地址</th>
                        <th align="center">留言时间</th>

                        <th align="center">操作</th>

                      </tr>

                    </thead>

                     <tbody>

                      <{load_data assign="list" table="messages" showpage="true" orderby="id desc"}>
                      <{foreach from=$list['list'] item=items}>
                      <tr class="s_out" onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="#ffffff">
                        <td align="center" ><input type="checkbox" name="id[]" value="<{$items['id']}>"></td>
                        <td align="center"><{$items['username']}>
                        </td>
                        <td width="200px" align="center"> <{$items['phone']}> </td>
                        <td width="200px" align="center"> <{$items['qq']}> </td>
                     <!--    <td align="center"><{$items['addtime']|date_format:"%Y-%m-%d %H:%M:%S"}></td> -->
                        <td align="center"> <{$items['shopname']}></td>
                         <td width="200px" align="center"> <{$items['shopaddress']}></td>
                         <td  align="center"> <{$items['addtime']|date_format:"%Y-%m-%d %H:%M:%S"}></td>
                        <td align="center">
						
						
                        	<{if $items['is_pass'] == 1}>
                        	 <a style="color:#F00;" onclick="return remind(this);" href="<{ofunc type=url link="/adminpage/ask/module/shenhaisj/id/<{$items['id']}>/datatype/json"}>">已审核</a>
                        	 <{else}>
                        	 <a onclick="return remind(this);" href="<{ofunc type=url link="/adminpage/ask/module/shenhaisj/id/<{$items['id']}>/datatype/json"}>">审核</a>
                        	 <{/if}>
                    
						
						<!-- <{if empty($items['replycontent'])}><a href="#" onclick="reask('<{$items['id']}>',this);">审核</a><{/if}> -->
                        	  <a onclick="return remind(this);" href="<{ofunc type=url link="/adminpage/ask/module/delsjmsg/id/<{$items['id']}>/datatype/json"}>">删除</a></td>
                      </tr>
                       <{/foreach}>

                    </tbody>

                  </table>

                <div class="blank20"></div>

                 <input type="hidden" name="stopoutenable" id="stopoutenable" value="4ce2f22509228162cadfc0ca0473ec19"/>

                </form>

               <div class="page_newc">
                 	     <div class="select_page">
                 	     	<a href="#" onclick="checkword(true);">全选</a>/<a href="#" onclick="checkword(false);">取消</a>
                 	     <a onclick="return remindall(this);" href="<{ofunc type=url link="/adminpage/ask/module/delsjmsg/datatype/json"}>" class="delurl">删除</a>
                 	     	</div>
                       <div class="show_page"><ul><{$list['pagecontent']}></ul></div>
                 </div>

                <div class="blank20"></div>

              </div>

            </div>

          </div>

        </div>


  </div>
 <div id="askback" style="display:none;">

               <div>
                <table border="0" cellspacing="1" cellpadding="4" class="list" name="table" id="table" width="100%">
                  <tbody>

                  	<tr onmouseover="this.bgColor='#F5F5F5';" onmouseout="this.bgColor='ffffff';" bgcolor="ffffff">

                      <td><textarea name="askback" style="height:70px;width:200px"></textarea></td>
                    </tr>

                    </table>
                </div>
              <div class="blank20"></div>
              <input type="hidden" name="askbackid" id="askbackid" value="" class="skey" style="width:150px;">
               <input type="submit" value="确认提交" class="button">

  </div>
 <script>
	var dialogs ;
 function reask(ids,obj){
 	 var formurl = '<{ofunc type=url link="/adminpage/ask/module/backask/datatype/json"}>';
 	 $('#askbackid').val(ids);
 	 var showcontent = '<form method="post" name="form1" action="'+formurl+'" onsubmit="return subform(\'<{ofunc type=url link="/adminpage/ask/module/asklist"}>\',this);">'

      showcontent += $('#askback').html();
      showcontent +='</form>';
   var dialog =  art.dialog({
    title:'留言回复',
    id:'ask',
    content: showcontent
  });
 }

</script>
</div>
<{/block}>